-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing problems with pasting from clipboard after tabs reorder #512
Conversation
Cool, 👍 for me |
Also fixes #473. |
good catch. All this code is buggy, tab management is buggy, this prevents to easily do something like split terminal or save session... If I had time I would rewrite all of this. Thanks for the PL and time you spend on debuging this issue! |
Fixing problems with pasting from clipboard after tabs reorder
This bug as well as #473 are still present when not swapping tabs next to each other.
This is because you do not only have to swap the terms by |
Fixing problems with pasting from clipboard after tabs reorder
Fixing problems with pasting from clipboard after tabs reorder
Open Guake with 2 tabs. Paste some text in theese terminals, everything is ok.
Swap them. Now when you try to paste text in the first tab, it will be pasted in the second tab.
This is because we don't change order of GuakeNotebook's term_list when the order of GuakeNotebook's pages changes. When we paste something, accel_paste_clipboard() method calls (guake_app.py), it detects terminal in GuakeNotebook by the index of the current page.
I redefined reorder_child() method of GuakeNotebook. So when you reorder pages in GuakeNotebook, terminals will reorder automatically.